package com.yoomiito.app.model.my;

import com.yoomiito.app.Constant;
import com.yoomiito.app.R;
import com.yoomiito.app.utils.ResUtil;

/************************************************************
 * Author:  linqiang
 * Description:     // 模块描述
 * Date: 2019/4/26
 ************************************************************/
public class MyUserInfo {

    /**
     * name : hahaha
     * headimgurl : http://thirdwx.qlogo.cn/mmopen/vi_32/s7MrMic5Ad3DdxNf2l0Zvn2Wic2oQuIp4LPXqVm3H1B6pTCyVxKrX2KuMmZvV2iaHZQt0ZngOmcXVkw9NpPQ8icIuA/132
     * sex : 1
     * mobile : 15976877523
     * role : VIP
     * invitationCode : 972719
     * birthday : null
     * nickname : ^_^
     * taobaoName : 551359601
     * parentName : Simply
     */

    private String name;
    private String headimgurl;
    private int sex;
    private String mobile;
    private String role;
    private String invitationCode;
    private String birthday;
    private String nickname;
    private String taobaoName;
    private String parentName;
    private int isAngel;//天使

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTaobaoName() {
        return taobaoName;
    }

    public void setTaobaoName(String taobaoName) {
        this.taobaoName = taobaoName;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public int getIsAngel() {
        return isAngel;
    }

    public void setIsAngel(int isAngel) {
        this.isAngel = isAngel;
    }

    public String getSexShow(){
        String sexShow = "";
        if (Constant.SEX_MAN == sex){
            sexShow = ResUtil.getString(R.string.my_man);
        }else if (Constant.SEX_WMEN == sex){
            sexShow = ResUtil.getString(R.string.my_wmen);
        }
        return sexShow;
    }
}
